const merchant = require('../crawler/core/main/merchant');

class api{


    /**
     * 搜索关键字列表
     */
    static async searchKey(url,cookie){
        return await new merchant(cookie).searchKeyword(url);
    }

    /**
     * 获取关键字表格详情数据
     * @param queryVo
     */
    static async keywordSearchDetail(queryVo,cookie){
        return new merchant(cookie).keywordSearchDetail(queryVo);
    }

    /**
     * ET列表搜索
     * @param url 搜索地址
     */
    static async etSearchList(url,cookie){
        return new merchant(cookie).etSearchList(url);
    }

    /**
     * P1关键字搜索
     */
    static async p1SearchList(url,cookie){
        return new merchant(cookie).p1SearchList(url);
    }

    /**
     * A+搜索
     */
    static async aplushSearchList(url,cookie){
        return new merchant(cookie).aplushSearchList(url);
    }

    /**
     * ET关键字搜索
     */
    static async etSearchKeyword(url,cookie){
        return new merchant(cookie).etSearchKeyword(url);
    }



}
module.exports = api;
